﻿<%@ Page Language="C#" MasterPageFile="~/default-nomenu.Master" AutoEventWireup="true" CodeBehind="regiaocadastro.aspx.cs" Inherits="CeA.Reports.Atendimento.Web.admin.regiaocadastro" Title="Cadastro de Região" %>
<%@ PreviousPageType TypeName="CeA.Reports.Atendimento.Web.admin.regiao" %>
<%@ Register src="../inc/WebControls/PesquisaRfs.ascx" tagname="PesquisaRfs" tagprefix="uc2" %>
<%@ Register src="../inc/WebControls/MessageBox.ascx" tagname="MessageBox" tagprefix="uc3" %>
<asp:Content ID="headr" ContentPlaceHolderID="head" runat="server">
  <link rel="Stylesheet" href="/css/popup.css" type="text/css" />
</asp:Content>

<asp:Content ID="body" ContentPlaceHolderID="BodyContentPlaceholder" runat="server">
  <h1>Cadastro de Região</h1>
  
  <h2>Dados da Região</h2>

  <table cellpadding="1px" cellspacing="1px">
    <tr>
      <td style="width:80px;"><label for="txtNome"  class="label">Nome RFS</label></td>      
      <td>
        <asp:TextBox ID="txtRfs" runat="server" CssClass="text-field" Width="200px"  MaxLength="128" ReadOnly="true" />
        <asp:Button ID="cmdPesquisarRfs" runat="server" CssClass="search-buttom" CausesValidation="false" />*
        <asp:RequiredFieldValidator ID="rfvRfs" runat="server" ControlToValidate="txtRfs" Text="(obrigatório)" EnableClientScript="true"/> 
      </td>
    </tr>
    <tr>
      <td><label for="txtSigla">Sigla</label> </td>
      <td>
        <asp:TextBox ID="txtSigla" runat="server" CssClass="text-field" Width="225px" MaxLength="40"/>*
        <asp:RequiredFieldValidator ID="rfvSigla" runat="server" ControlToValidate="txtSigla" Text="(obrigatório)" EnableClientScript="true"/>
      </td>
    </tr>
    <tr>
      <td><label for="txtNome">Nome</label> </td>
      <td>
        <asp:TextBox ID="txtNome" runat="server" CssClass="text-field" Width="550px" MaxLength="100"/>*
        <asp:RequiredFieldValidator ID="rfvNome" runat="server" ControlToValidate="txtNome" Text="(obrigatório)" EnableClientScript="true"/>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <span class="form-note">* Campos Obrigatórios</span>
      </td>
    </tr>
  </table>
  <div class="break">
    <asp:Button ID="cmdVoltar" runat="server" Text="Voltar" CssClass="form-buttom" OnClick="cmdVoltar_Click" CausesValidation="false" />
    <asp:Button ID="cmdSalvar" runat="server" Text="Salvar" CssClass="form-buttom" OnClick="cmdSalvar_Click" />
  </div>
  
  <asp:HiddenField ID="hdnRfsId" runat="server" Value="" />

  <uc2:PesquisaRfs ID="PesquisaRfs" runat="server" />
  <uc3:MessageBox ID="MessageBox" runat="server" />
</asp:Content>